package com.sun.apply;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class ContainLowercase {
    public static void main(String[] args) {
        String str = ".*[a-z]+.*";
        String target = "ASDFAFDasDFDA";
        Boolean b = Pattern.compile(str).matcher(target).matches();
        System.out.println("是否包含小写字母"+b);
        Matcher matcher = Pattern.compile(str).matcher(target);
        if (matcher.matches()){
            String group = matcher.group(0);
            System.out.println(group);
            String group1 = matcher.group(1);
            System.out.println(group1);
            String group2 = matcher.group(2);
            System.out.println(group2);
        }


    }
}
